package cn.yhz.pethome.dept.mapper;

import cn.yhz.pethome.dept.Query.DepartmentQuery;
import cn.yhz.pethome.dept.domain.Department;

import java.util.List;

public interface IDepartmentMapper {
    //查询所有和分页
    List<Department> selectAll(DepartmentQuery query);
    //查询一个
    Department selectById(Long id);
    //查询条数
    Long count(DepartmentQuery query);
    //新增
    void insert(Department department);
    //修改
    void update(Department department);
    //删除
    void delete(Long id);
}
